FROM mysql:8.4
LABEL maintainer="BolingCavalry <23339097@qq.com>"

ENV WORK_PATH /usr/local/work
ENV AUTO_RUN_DIR /docker-entrypoint-initdb.d

ENV MYSQL_ROOT_PASSWORD 12345678

ENV FILE_0  IceCMS.sql
ENV INSTALL_DATA_SHELL setup.sh

RUN mkdir -p $WORK_PATH
COPY ./$FILE_0 $WORK_PATH/
COPY ./$INSTALL_DATA_SHELL $AUTO_RUN_DIR/
EXPOSE 3306
RUN chmod a+x $AUTO_RUN_DIR/$INSTALL_DATA_SHELL
